import java.util.Scanner;

public class Grade {
    public static void main(String[] args) {
        while (true) {
            Scanner scanner = new Scanner(System.in);
            int score = scanner.nextInt();
            if (score > 90 ){
                System.out.println("优秀");
            } else if (score >= 80 && score < 90) {
                System.out.println("良好");
            } else if (score >= 70 && score < 80) {
                System.out.println("中等");
            } else if (score >= 60 && score < 70) {
                System.out.println("及格");
            }else{
                System.out.println("不及格");
            }

        }
    }
}
